package com.phantasy.managers
{
	import flash.display.DisplayObjectContainer;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	import flash.utils.Dictionary;

	/**
	 *弹窗管理器 
	 * @author Liseen
	 * 
	 */	
	public class WindowManager extends EventDispatcher
	{
		private static var instance:WindowManager;
		private var windows:Dictionary;
		private var windowContainer:DisplayObjectContainer;
		public function WindowManager(target:IEventDispatcher=null)
		{
			super(target);
			windows = new Dictionary();
			
		}
		
		public static function getInstance():WindowManager
		{
			if (instance == null)
			{
				instance = new (WindowManager)();
			}
			return instance;
		}
		
		/**
		 *注册窗口跟容器 
		 * @param container
		 * 
		 */		
		public function registerWindowContainer(container:DisplayObjectContainer):void
		{
			this.windowContainer = container;
		}
	}
}